package com.nanjia.boot.product.sku.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 商品库存单元(SKU)视图对象
 *
 * @author 周洋
 * @since 2025-07-10 14:15
 */
@Getter
@Setter
@Schema( description = "商品库存单元(SKU)视图对象")
public class ProductSkuVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "SKU主键")
    private Long id;
    @Schema(description = "所属SPU")
    private Long spuId;
    @Schema(description = "SKU编码")
    private String skuCode;
    @Schema(description = "销售价格")
    private BigDecimal price;
    @Schema(description = "成本价")

    private Integer stock;
    @Schema(description = "库存预警值")
    private Integer stockThreshold;
    @Schema(description = "条形码")
    private String barCode;

    @Schema(description = "SKU主图")
    private String mainImage;
    @Schema(description = "SKU详情图")
    private String detailImages;
    @Schema(description = "状态")
    private Integer status;
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    private String spuName;

    @Schema(description = "计量单位")
    private String skuMeasurement;

    private Long skuRatio;
}
